package com.zlhj.ex.vo;

import cn.hutool.core.date.DateUtil;

import java.time.LocalDate;
import java.util.Date;

/**
 * @author zsx
 * @date 2021/06/17 10:08
 */
public class Te {
    public static void main(String[] args) {
//        String date = DateUtil.format(new Date(), "yyyyMMdd");
//        System.out.println(date);
//        DateTime parse = DateUtil.parse(date, "yyyyMMdd");
//        System.out.println(parse);

        String date = DateUtil.format(new Date(), "yyyyMMdd");
        LocalDate parse = LocalDate.parse(date);
        System.out.println(parse.toString());
    }
}
